const randomInt = (min: number, max: number): number => {
  return Math.floor(Math.random() * (max - min + 1) + min);
};

export const randomNum = (maxNum: number) =>
  parseInt(String(Math.random() * (maxNum + 1)), 10);

export default randomInt;
